{% load staticfiles %}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>教师端管理系统</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    {% block css %}
    {% endblock %}
    <link rel="stylesheet" href="{% static "admin/bootstrap/css/bootstrap.min.css" %}">
    <link rel="stylesheet" href="{% static "fonts/css/font-awesome.min.css" %}">
    <link rel="stylesheet" href="{% static "ionicons/css/ionicons.min.css" %}">
    <link rel="stylesheet" href="{% static "admin/dist/css/AdminLTE.min.css" %}">
    <link rel="stylesheet" href="{% static "admin/dist/css/skins/_all-skins.min.css" %}">
    <link rel="stylesheet" type="text/css" href="{% static "admin/plugins/datepicker/datepicker3.css" %}">
    <style>
        * {
            font-family: "Microsoft YaHei";
        }

        .table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {
            vertical-align: middle;
            text-align: center;
        }

    </style>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
    <header class="main-header">
        <a href="index.html" class="logo">
            <span class="logo-mini">教师系统</span>
            <span class="logo-lg">教师端管理系统</span>
        </a>
        <nav class="navbar navbar-static-top">
            <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                <span class="sr-only">下拉菜单</span>
            </a>
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="{{ MEDIA_URL }}{{ request.user.avator }}"
                                 class="user-image" alt="User Image">
                            <span class="hidden-xs">{{ request.user.username }}</span>
                        </a>
                        <ul class="dropdown-menu">
                            <li class="user-header">
                                <img src="{{ MEDIA_URL }}{{ request.user.avator }}"
                                     class="img-circle" alt="User Image">
                                <p>
                                     {{ request.user.username }}
                                </p>
                            </li>
                            <li class="user-footer">
                                    <a href="{% url "teacher:logout" %}" class="btn btn-default btn-flat">退出系统</a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
    </header>
    <aside class="main-sidebar">
        <section class="sidebar">
            <div class="user-panel">
                <div class="pull-left image">
                    <img src="{{ MEDIA_URL }}{{ request.user.avator }}" class="img-circle"
                         alt="User Image">
                </div>
                <div class="pull-left info">
                    <p>{{ request.user.username }}</p>
                    <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
                </div>
            </div>
            <ul class="sidebar-menu">
                <li class="header">管理菜单</li>
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-user-secret" aria-hidden="true"></i>
                        <span>班级管理</span>
                        <span class="label label-primary pull-right">2</span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="{% url "teacher:index" %}">
                                <i class="fa fa-circle-o"></i> 班级列表
                            </a>
                        </li>
                        <li>
                            <a href="{% url "teacher:addgrade" %}">
                                <i class="fa fa-circle-o"></i> 添加班级
                            </a>
                        </li>
                    </ul>

                </li>
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-user-secret" aria-hidden="true"></i>
                        <span>学生管理</span>
                        <span class="label label-primary pull-right">2</span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="{% url "teacher:students" %}">
                                <i class="fa fa-circle-o"></i> 学生列表
                            </a>
                        </li>
                        <li>
                            <a href="{% url "teacher:add_student" %}">
                                <i class="fa fa-circle-o"></i> 添加学生
                            </a>
                        </li>
                    </ul>

                </li>
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-user-secret" aria-hidden="true"></i>
                        <span>课程管理</span>
                        <span class="label label-primary pull-right">2</span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="{% url "teacher:course_list" %}">
                                <i class="fa fa-circle-o"></i> 课程列表
                            </a>
                        </li>
                        <li>
                            <a href="{% url "teacher:add_course" %}">
                                <i class="fa fa-circle-o"></i> 添加课程
                            </a>
                        </li>
                    </ul>

                </li>
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-user-secret" aria-hidden="true"></i>
                        <span>教辅资料管理</span>
                        <span class="label label-primary pull-right">2</span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="{% url "teacher:resource_list" %}">
                                <i class="fa fa-circle-o"></i> 资料列表
                            </a>
                        </li>
                        <li>
                            <a href="{% url "teacher:add_resource" %}">
                                <i class="fa fa-circle-o"></i> 添加资料
                            </a>
                        </li>
                    </ul>

                </li>
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-skyatlas" aria-hidden="true"></i>
                        <span>课程章节管理</span>
                        <span class="label label-primary pull-right">2</span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="{% url "teacher:lesson_list" %}">
                                <i class="fa fa-circle-o"></i> 章节列表
                            </a>
                        </li>
                        <li>
                            <a href="{% url "teacher:add_lesson" %}">
                                <i class="fa fa-circle-o"></i> 添加章节
                            </a>
                        </li>
                    </ul>

                </li>
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-cart-plus" aria-hidden="true"></i>
                        <span>签到管理</span>
                        <span class="label label-primary pull-right">2</span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="{% url "teacher:sign_list" %}">
                                <i class="fa fa-circle-o"></i> 签到列表
                            </a>
                        </li>
                        <li>
                            <a href="{% url "teacher:add_sign" %}">
                                <i class="fa fa-circle-o"></i> 创建签到
                            </a>
                        </li>
                    </ul>

                </li>
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-user-secret" aria-hidden="true"></i>
                        <span>课程视频管理</span>
                        <span class="label label-primary pull-right">2</span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="{% url "teacher:video_list" %}">
                                <i class="fa fa-circle-o"></i> 视频列表
                            </a>
                        </li>
                        <li>
                            <a href="{% url "teacher:add_video" %}">
                                <i class="fa fa-circle-o"></i> 添加视频
                            </a>
                        </li>
                    </ul>

                </li>
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-user-secret" aria-hidden="true"></i>
                        <span>课程消息管理</span>
                        <span class="label label-primary pull-right">2</span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="{% url "teacher:message_list" %}">
                                <i class="fa fa-circle-o"></i> 消息列表
                            </a>
                        </li>
                        <li>
                            <a href="{% url "teacher:send_message" %}">
                                <i class="fa fa-circle-o"></i> 添加消息
                            </a>
                        </li>
                    </ul>

                </li>
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-user-secret" aria-hidden="true"></i>
                        <span>考试管理</span>
                        <span class="label label-primary pull-right">2</span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="{% url "teacher:list_exam" %}">
                                <i class="fa fa-circle-o"></i> 考试列表
                            </a>
                        </li>
                        <li>
                            <a href="{% url "teacher:create_exam" %}">
                                <i class="fa fa-circle-o"></i> 创建考试
                            </a>
                        </li>
                    </ul>

                </li>
                <li class="treeview">
                    <a href="#">
                        <i class="fa fa-user-secret" aria-hidden="true"></i>
                        <span>成绩管理</span>
                        <span class="label label-primary pull-right">1</span>
                    </a>
                    <ul class="treeview-menu">
                        <li>
                            <a href="{% url "teacher:analyse" %}">
                                <i class="fa fa-circle-o"></i> 成绩列表
                            </a>
                        </li>
                    </ul>

                </li>
            </ul>
        </section>
    </aside>
    <div class="content-wrapper">
        {% block conetnt %}
        {% endblock %}
        <!--内容-->
        <!--内容-->
    </div>
    <div class="control-sidebar-bg"></div>
</div>
<script src="{% static "admin/plugins/jQuery/jQuery-2.2.0.min.js" %}"></script>
<script src="{% static "admin/bootstrap/js/bootstrap.min.js" %}"></script>
<script src="{% static "admin/plugins/slimScroll/jquery.slimscroll.min.js" %}"></script>
<script src="{% static "admin/plugins/fastclick/fastclick.js" %}"></script>
<script src="{% static "admin/dist/js/app.min.js" %}"></script>
<script src="{% static "admin/dist/js/demo.js" %}"></script>
<script src="//cdn.bootcss.com/holder/2.9.4/holder.min.js"></script>
<script src="{% static "admin/plugins/datepicker/bootstrap-datepicker.js" %}"></script>
<script src="{% static "admin/plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js" %}" charset="UTF-8"></script>
{% block script %}
{% endblock %}

</body>
</html>